package com.powerunion.datacollection.dao;

import com.powerunion.datacollection.model.CollectionTaskInstance;
import com.powerunion.datacollection.workflow.domain.TaskInstance;

public interface CollectionTaskInstanceDao {
	public TaskInstance save(TaskInstance ct)throws DaoException;
		
	public boolean delete(String[] codes) throws DaoException;
	
	public CollectionTaskInstance getBykey(String id) throws DaoException;
	
	public String getCollectionTaskInstances(int start,int limit,String userCode);
	
	public boolean updateTaskInstanceState(String id,int state) throws DaoException;
	
	public boolean updateTaskInstanceStateByProc(String procId,int state) throws DaoException;
	
} 
